<template>
	<Menu :Config="Config" msg="123"></Menu>
</template>

<script>
import Menu from '@/components/Menu/Menu.vue';

var columns = [
	{ title: '自增id', dataIndex: 'menu_id', iskey: true, edit: false, defaultVlue: 0, },
	{ title: '菜单层级', dataIndex: 'menu_level', iskey: false, edit: false, defaultVlue: 1, },
	{ title: '菜单父ID', dataIndex: 'menu_pid', iskey: false, edit: true, defaultVlue: 0, },
	{ title: '菜单名称', dataIndex: 'menu_name', iskey: false, edit: true, defaultVlue: '', },
	{ title: '菜单地址', dataIndex: 'menu_url', iskey: false, edit: true, defaultVlue: '', },
	{ title: '图标', dataIndex: 'menu_icon', iskey: false, edit: true, defaultVlue: '-', },
];

export default {
	components: {
		Menu,
	},
	data() {
		return {
			Config: {
				columns: columns,
				idName: 'menu_id',
				pidName: 'menu_pid',
				levelName: 'menu_level',

				getTreeUrl: '/manage/SystemMenu/GetListTree', 
				addUrl: '/manage/SystemMenu/Insert',
				editUrl: '/manage/SystemMenu/Update',
				delUrl: '/manage/SystemMenu/DeleteById',
			}
		};
	},
	mounted() {
	},
	methods: {
	},
};
</script>